Skip to content

test: Fixed runners not running 'board' integration test #2381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Oct 20, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

The board integration test package was skipped during integration tests. This was due to a strange behavior of jq, which was cutting the first package in the list unless the -n flag was passed.

The documentation of jq reports:

○   --null-input/-n:
           Don't  read any input at all! Instead, the filter is run once using null as the input. This is useful when using jq as
           a simple calculator or to construct JSON data from scratch.

¯\_(ツ)_/¯

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change, and is titled accordingly?

Other information

See https://stackoverflow.com/a/68859958/1655275

Copy link
Contributor

@alessio-perugini alessio-perugini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jq, why is it always you?!

@cmaglie
Copy link
Member Author

cmaglie commented Oct 23, 2023

Before merging this, we must fix the failing test.

@cmaglie cmaglie force-pushed the fix_integr_test_runner branch from 589266c to 2b8d1be Compare October 23, 2023 09:09
@cmaglie cmaglie self-assigned this Oct 23, 2023
@cmaglie cmaglie added topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Oct 23, 2023
@cmaglie cmaglie force-pushed the fix_integr_test_runner branch from 2b8d1be to 7231626 Compare November 6, 2023 16:21
@cmaglie cmaglie force-pushed the fix_integr_test_runner branch from 7231626 to 68be030 Compare November 10, 2023 08:57
<<< Run completed (err = <nil>)
    environment.go:52:
        	Error Trace:	D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:52
            			D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:63
        	            	D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:63
        	            	D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:69
        	            	D:/a/arduino-cli/arduino-cli/internal/integrationtest/board/board_test.go:638
        	Error:      	Received unexpected error:
        	            	remove C:\Users\runneradmin\AppData\Local\Temp\cli2634248494\A\inventory.yaml: The process cannot access the file because it is being used by another process.
        	Test:       	TestCLIStartupWithCorruptedInventory
--- FAIL: TestCLIStartupWithCorruptedInventory (8.45s)
@cmaglie cmaglie force-pushed the fix_integr_test_runner branch from c23a84b to 7768115 Compare November 10, 2023 13:29
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b0e28d9) 65.16% compared to head (7768115) 67.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2381      +/-   ##
==========================================
+ Coverage   65.16%   67.17%   +2.00%     
==========================================
  Files         210      210              
  Lines       20519    20519              
==========================================
+ Hits        13371    13783     +412     
+ Misses       6024     5598     -426     
- Partials     1124     1138      +14     
Flag Coverage Δ
unit 67.17% <ø> (+2.00%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 16 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cmaglie cmaglie merged commit ae24226 into arduino:master Nov 10, 2023
@cmaglie cmaglie deleted the fix_integr_test_runner branch November 10, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants